package com.carl.mall.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.carl.common.utils.PageUtils;
import com.carl.mall.member.entity.MemberEntity;
import com.carl.mall.member.exception.PhoneExistException;
import com.carl.mall.member.exception.UserNameExistException;
import com.carl.mall.member.vo.MemberLoginVO;
import com.carl.mall.member.vo.MemberRegisterVO;
import com.carl.mall.member.vo.SocialUser;

import java.util.Map;

/**
 * 会员
 *
 * @author carl
 * @email 541020344@qq.com
 * @date 2024-03-10 23:29:01
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void register(MemberRegisterVO memberRegisterVO) throws PhoneExistException, UserNameExistException;

    MemberEntity login(MemberLoginVO memberLoginVO);


    MemberEntity login(SocialUser socialUser);

}

